package health_system.health_system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Controller for handling page requests
 */
@Controller
@RequestMapping("/page")
public class PageController {

    /**
     * Return the index page template
     * GET /page/index
     *
     * @return the index page
     */
    @GetMapping("/index")
    public ModelAndView index() {
        return new ModelAndView("page/index");
    }
} 